import request from '@/utils/request'

// 获取公匙
export function getStatistic() {
  return request({
    url: '/index/statistic',
    method: 'get'
  })
}

// 下载excel
export function fetchExcel(query) {
  return request({
    timeout: 300000,
    url: '/gcxt/report/downloadKeyTimelyRate',
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}
